﻿//-----------------------------------------------------------------------
// <copyright file="IHelloWorldRESTService.cs" company="$registeredorganization$">
// Copyright © $registeredorganization$
// </copyright>
//-----------------------------------------------------------------------
namespace $originalprojectname$.Client
{
    using System;
    using System.ServiceModel;
    using System.ServiceModel.Web;
    using $originalprojectname$.Service;
    
    /// <summary>
    /// The REST Service Contract.
    /// </summary>
    [ServiceContract]
    public interface IHelloWorldRESTService
    {
        /// <summary>
        /// Returns a hello world string.
        /// </summary>
        /// <param name="helloWorld">An input string of text.</param>
        /// <returns>A string of text echoing the input value.</returns>
        [OperationContract, WebGet(UriTemplate = "/HelloWorld/{helloWorld}", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
        string HelloWorld(string helloWorld);$if$ ($includedb$ == true)

        /// <summary>
        /// Returns a hello world string from the database.
        /// </summary>
        /// <param name="helloWorld">An input string of text.</param>
        /// <returns>A string of text echoing the input value.</returns>
        [OperationContract, WebGet(UriTemplate = "/HelloWorldFromDatabase/{helloWorld}", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
        string HelloWorldFromDatabase(string helloWorld);$endif$
    }
}
